﻿/**********************************弘石项目*******************************************
* 功能描述:系统功能显示菜单
* 作者:石锦涛
* 时间:2021-12-16
* 
**********************************弘石项目*******************************************/
using HongStone.Domain.OperationsManagement;
using HongStone.Service;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using MiniExcelLibs;
using HongStone.Domain.AttendanceManagement;

namespace HongStone.API.Controllers
{
    [ApiExplorerSettings(GroupName = "DisplayOptions")]
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DisplayOptionsController : ControllerBase
    {
        private readonly DisplayOptionsBll _displayOptionsBll;
        public DisplayOptionsController(DisplayOptionsBll displayOptionsBll)
        {
            _displayOptionsBll=displayOptionsBll;
        }

        /// <summary>
        /// 系统功能显示
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult ShowFunction()
        {
            try
            {
                return Ok(_displayOptionsBll.ShowFunction());
            }
            catch (Exception)
            {

                throw;
            }
        }

    }
}
